package com.zxy.basic.controller;

import com.zxy.basic.model.vo.SyncTenantUserVO;
import com.zxy.basic.service.IndexService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @program: mybatis-study
 * @description:
 * @author: zhangxiaoyang
 * @date: 2020/6/17 3:59 下午
 **/
@Api(tags = "功能模块管理")
@Slf4j
@RestController
@RequestMapping("/index")
public class IndexController {

    @Autowired
    private IndexService indexService;
    @PutMapping("/sync-tenant-user")
    @ApiOperation("更新  租户详情-销售记录")
    public void updateTenantUser(@RequestBody @Valid SyncTenantUserVO syncTenantUserVO) {
        indexService.updateTenantUser(syncTenantUserVO);
    }
}
